function getHtml(filName)
    local html = ""
    file = io.open(filName, "r")
    if file == nil then
        return html;
    end
    for line in file:lines() do
        html = html .. line
    end
    file:close()
    return html
end

RulePath = "/usr/local/nginx/conf/waf/wafconf/"
attacklog = "on"
logdir = "/home/wwwlogs/attack"
UrlDeny="on"
Redirect="on"
CookieMatch="on"
postMatch="on" 
whiteModule="on" 
black_fileExt={"php","jsp"}
ipWhitelist={"127.0.0.1"}
ipBlocklist={"1.0.0.1"}
CCDeny="on"
CCrate="100/60"
html=getHtml("/usr/local/nginx/conf/waf/html/default.html")
CChtml=getHtml("/usr/local/nginx/conf/waf/html/CCDeny.html")
